/**
 *
 */
function Foo() {

}

console.log(Foo.prototype)

console.log(Object.getOwnPropertyDescriptors(Foo.prototype))

console.log(Foo.prototype.constructor)


/**
 * 修改函数原型
 * 直接修改整个prototype对象
 */
function Bar() {

}

Bar.prototype = {
  name: 'li',
  age: 19,
  height: 1.9
}
Object.defineProperty(Bar.prototype, 'constuctor', {
  value: Bar,
  writable: true,
  configurable: true,
  enumerable: false
})
var b1 = new Bar()
console.log(b1.__proto__)
console.log(b1.age)
